{%load markup%}
<h3><a href="/words/{{meaning.word.word}}">{{meaning.word.word}}</a>: {{meaning.text}}</h3>
{%for type in types%}
    <h4>{{type.name}}</h4>
    <blockquote>
    {%for usage in meaning.usages.all%}
        {% ifequal usage.usage_type type %}
            <i>{{usage.work_text|markdown:"thesaurus"|linebreaks}}</i> &mdash; <a href="/works/code/{{usage.work.code}}">{{usage.work.code}}</a> <br>
            <blockquote>{{usage.comment|markdown:"thesaurus"|linebreaks}}</blockquote>
            <br>
        {%endifequal%}
    {%endfor%}
    </blockquote>
{%endfor%}
